package com.sh.data.engine.application.model.request.api;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author : fuchen
 * @date : 2022/1/21 14:31
 */
@Data
@Schema
public class DataApiMyApiByTagRequest {

    @Schema(description = "标签id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    private Long tagId;

    @Schema(description = "状态 1-未发布 2-已发布", allowableValues = {"1", "2"})
    private Integer apiStatus;

    @Schema(description = "api名称")
    private String apiName;

    @Schema(description = "第几页")
    private Integer pageNum = 1;

    @Schema(description = "每页大小")
    private Integer pageSize = 10;

    @Schema(description = "排序方式", allowableValues = {"asc", "desc"})
    private String order;

    @Schema(description = "排序字段", allowableValues = {"TABLESIZE"})
    private String orderField;
}
